<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:t="https://code.google.com/p/rad-framework/taglib"
	xmlns:tt="https://code.google.com/p/rad-framework"
	xmlns:s="http://jboss.com/products/seam/taglib">
	
	<rich:togglePanel switchType="#{switchType == null ? 'client' : switchType}" id="#{id}"
		rendered="#{rendered == null ?  true : rendered}"
		initialState="closed" stateOrder="closed,open">
		<f:facet name="closed">

			<ui:insert name="closed" />

		</f:facet>
		<f:facet name="open">
			<h:panelGrid cellspacing="4" width="100%">
				<s:div styleClass="rad-framework-popup">
					<s:div styleClass="rad-framework-popup-content">
						<h:panelGrid cellspacing="4" width="100%">
						
							<ui:insert name="open" />
						
						</h:panelGrid>
					</s:div>
				</s:div>
			</h:panelGrid>
		</f:facet>
	</rich:togglePanel>
	
</ui:composition>